var m=Object.defineProperty;var S=(r,t,e)=>t in r?m(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var l=(r,t,e)=>S(r,typeof t!="symbol"?t+"":t,e);var o=(r,t,e)=>new Promise((a,u)=>{var p=n=>{try{i(e.next(n))}catch(d){u(d)}},c=n=>{try{i(e.throw(n))}catch(d){u(d)}},i=n=>n.done?a(n.value):Promise.resolve(n.value).then(p,c);i((e=e.apply(r,t)).next())});import{j as g,U as A,h as D}from"./entry/index-CPYS8kCF-1740047470353.js";import{SysEventAttr as s}from"./SysEvent-CBqUvzXE.js";import{SFProc as T}from"./SFProc-LnDBalpp.js";import"./vue-Gs2A-FTJ.js";import"./antd-BjVZPC8d.js";import"./SFDBSrc-D02VIm5o.js";import"./SFPara-DZT-WFaQ.js";import"./MapAttr-B7ZYeCFv.js";import"./Events-D9tOL1Ad.js";import"./SFParaSln-CzRjcCbK.js";class U extends g{constructor(e){super("TS.Sys.SysEventSFWebApi");l(this,"Help",`  
  ### 帮助  
  
  #### POST模式  
  - 输入完整的URL，例如: \`http://ccbpm.cn:9090?xx=@FK_Flow&xx=@WebUser.No&xx=@WebUser.Name&...\`  
    （注意：这里只展示了部分参数，实际使用时需要包含所有必要的参数）  
  - 全量模式会对表单的全部字段数据进行格式封装，例如JSON格式：  
    \`\`\`json  
    {  
      "AtPara": "",  
      "SQR": "admin",  
      "Rec": "admin",  
      "RDT": "2024-05-14",  
      ...  
    }  
    \`\`\`  
  - Java接口定义规则：  
    \`\`\`java  
    @PostMapping("/ceshi")  
    @ResponseBody  
    public Object ceshi(@RequestBody Map<String, Object> map, String token, String nodeId) {  
      // 方法实现  
    }  
    \`\`\`  
  - .NET接口定义规则：  
    \`\`\`csharp  
    [HttpPost]  
    public object ceshi([FromBody] dynamic data, string token, string workId) {  
      // 方法实现  
    }  
    \`\`\`  
  
  #### GET模式  
  - 输入完整的URL，与POST模式类似，但通常不包含请求体。  
  
  ### 返回值格式  
  - 成功时：  
    \`\`\`json  
    {  
      "message": "执行成功",  
      "code": 200,  
      "data": "",  
      "msg": "具体执行成功的消息（可选）"  
    }  
    \`\`\`  
  - 失败时：  
    \`\`\`json  
    {  
      "message": "执行失败",  
      "code": 500,  
      "data": "",  
      "msg": "具体执行失败的消息"  
    }  
    \`\`\`  
`);e&&(this.MyPK=e)}get HisUAC(){const e=new A;return e.IsDelete=!1,e.IsUpdate=!0,e.IsInsert=!1,e}get EnMap(){const e=new D("Sys_FrmEvent","服务事件");return e.AddMyPK(),e.AddTBString(s.RefPKVal,null,"关键值",!1,!0,0,100,10),e.AddTBString(s.EventID,null,"事件标记",!0,!0,0,100,150),e.AddTBString(s.EventName,null,"事件名称",!0,!0,0,100,150),e.AddTBString(s.EventDoType,null,"执行标记",!0,!0,0,100,100),e.AddTBString(s.EventDoTypeT,null,"执行标记T",!1,!0,0,100,100),e.AddTBString("FrmID",null,"表单ID",!0,!0,0,100,10),e.AddTBString("FK_Flow",null,"流程编号",!0,!0,0,100,10),e.AddTBInt("FK_Node",0,"节点ID",!0,!0),e.AddTBString("DoDoc",null,"Url",!0,!1,0,800,100,!0,this.Help),e.AddDDLStringEnum("PostModel","Get","请求模式","@Get=Get模式@POST=Post模式",!0,""),e.AddTBStringDoc("DoDocT",null,"备注",!0,!1,!0,this.Help),e.AddGroupAttr("POST设置"),e.AddDDLStringEnum("ParaMoel","0","参数模式","@0=自定义模式@1=全量模式",!0,this.HelpParaModel),e.AddTBStringDoc("ParaDocs",null,"自定义数据内容",!0,!1,!0,this.Help),e.AddDDLStringEnum("ParaDTModel","1","数据格式","@0=From格式@1=JSON格式",!0,this.HelpParaModel),this._enMap=e,this._enMap}GenerParas(){return o(this,null,function*(){const e=new T(this.DoDoc);yield e.Retrieve();const a=this.MyPK;return yield e.AddSln(a,this.FrmID)})}beforeInsert(){return o(this,null,function*(){return Promise.resolve(!0)})}beforeUpdateInsertAction(){return o(this,null,function*(){return Promise.resolve(!0)})}}export{U as SysEventSFWebApi};
